package cn.hengzhu.main_manager.repository.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.hengzhu.main_manager.repository.domain.AccessRecord;
import cn.hengzhu.main_manager.repository.domain.PayOrder;
import cn.hengzhu.main_manager.repository.domain.PayOrderExample;
import cn.hengzhu.main_manager.repository.param.CompBillParam;

public interface PayOrderMapper {
    /**
     *
     * @mbg.generated
     */
    long countByExample(PayOrderExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByExample(PayOrderExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer orderId);

    /**
     *
     * @mbg.generated
     */
    int insert(PayOrder record);

    /**
     *
     * @mbg.generated
     */
    int insertSelective(PayOrder record);

    /**
     *
     * @mbg.generated
     */
    List<PayOrder> selectByExample(PayOrderExample example);

    /**
     *
     * @mbg.generated
     */
    PayOrder selectByPrimaryKey(Integer orderId);

    /**
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") PayOrder record, @Param("example") PayOrderExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") PayOrder record, @Param("example") PayOrderExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(PayOrder record);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(PayOrder record);
    
    List<PayOrder> getCompBillListByCompId(@Param("param") CompBillParam param);
    
    /**
     * 根据公司账单记录查找已支付订单
     * @param param
     * @return
     */
    PayOrder getPayOrderByCompBillRecord(@Param("param")AccessRecord param);
}